package com.leyou.dao;

import com.leyou.pojo.Spu;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface SpuMapper extends Mapper<Spu> {
    @Update("update tb_spu set saleable=#{s} where id=#{id} ")
    void upOrDown(Integer id, Integer s);
   @Select("select * from tb_spu where id=#{spuid}")
    Spu findSpuBuId(Integer spuid);
}
